


public class Laptop {
	
	private String make;
	private String model;
	private int screenSize;
	private String OS;
	private int RAM;
	private boolean withCamera;
	
	
	Laptop(String newmake, String newmodel){
		 make = newmake;
		 model = newmodel;
	}
	
	
	void laptopinfo(){
		System.out.println("Laptop is - " + make);
		System.out.println("Laptop model is - " + model);
		System.out.println("Laptop screenSize is - " + screenSize);
		System.out.println("Laptop RAM is - " + RAM);
		
		
	}
	
	void withCamera(){
		if(withCamera){
			withCamera = true;
			System.out.println("Laptop has inbuilt camera");
		}else{
			System.out.println("Laptop has no camera");
		}
	}

	void displayOS(){
		switch (OS) {
		case "1":
			OS = "Windows7";
			break;
			
		case "2":
			OS = "Windows8";
			
		case "3":
			OS = "Win7 Pro";
			
		case "4":
			OS = "Win8 Pro";

		default:
			break;
		}
			System.out.println("The OS of the laptop is "+ OS);
	}
	void laptopprice(){		
	if(RAM == 6 && withCamera == true){
		System.out.println("Laptop is expensive as it has more RAM and has camera");

	}else {
		System.out.println("Laptop is less expensive ");
	}
			
	

		
	}

	public int getScreenSize() {
		return screenSize;
	}

	public void setScreenSize(int screenSize) {
		this.screenSize = screenSize;
	}

	public String getOS() {
		return OS;
	}

	public void setOS(String oS) {
		OS = oS;
	}

	public int getRAM() {
		return RAM;
	}

	public void setRAM(int rAM) {
		RAM = rAM;
	}

	public boolean isWithCamera() {
		return withCamera;
	}

	public void setWithCamera(boolean withCamera) {
		this.withCamera = withCamera;
	}

	public String getMake() {
		return make;
	}

	public String getModel() {
		return model;
	}
	
	
	
}

